home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14674 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.9 KB

  1. Path: gos.ukc.ac.uk!jsr4
  2. From: jsr4@ukc.ac.uk (Monts)
  3. Newsgroups: comp.lang.asm.x86,comp.lang.c,comp.lang.c++,comp.programming
  4. Subject: Re: Tough Question: Get a Hard-disk's Brand/Model No....
  5. Date: Mon, 01 Apr 96 15:13:04 GMT
  6. Organization: University of Kent at Canterbury, UK.
  7. Sender: jsr4@ukc.ac.uk
  8. Message-ID: <15059@gos.ukc.ac.uk>
  9. References: <3144773A.256A@pacific.net.sg> <4j7m0g$lp6@centaur.achilles.net>
  10. Reply-To: jsr4@ukc.ac.uk (Monts)
  11. NNTP-Posting-Host: gos.ukc.ac.uk
  12.  
  13. In article <4j7m0g$lp6@centaur.achilles.net>,
  14. Yousuf Khan <ykhan@achilles.net> wrote:
  15. >Allen Te <pcdirect@pacific.net.sg> wrote:
  16. >
  17. >>I've seen a few programs that are actually able to detect
  18. >>a hard-disk's brand/model.
  19. >>Eg,  Conners AP540, Maxtor MT1200 etc....  
  20. >
  21. >>Is that possible using some interrupts? Can someone give
  22. >>me some source for doing that?
  23. >
  24. >It's not possible with any standard interrupt services -- it's too
  25. >specialized to bother to implement as some kind of an operating system
  26. >API function. You would have to go into I/O ports that control the
  27. >hard disk directly. 
  28.  
  29. It's not too difficult at all from what I remember, just a matter of
  30. setting the drive up to do a read and then reading off the information
  31. block.
  32.  
  33. one thing though, how do you tell what irq line / port address the 
  34. controller(s) are running off in an EIDE system? I was pondering
  35. on that one a while back and couldn't come up with a good answer...
  36.  
  37. (what I really need is a way of telling which is the primary and 
  38. which is the secondary controller)
  39.  
  40. (email would be great if anyone can come up with a good answer,
  41.  I'm *still* stuck accessing the 'net at the colossal rate of 
  42. 2400 baud... :)
  43.  
  44. cheers
  45.  
  46. Jules
  47.  
  48. --
  49.  <9~      ..      ..        ---..   ..   .--..---         ..      ..       <9~
  50.  (W) ___.'  `    '  `    .-    ||   ||   |-- `--.  -.    '  `    '  `.___  (W)
  51.              `..'    `..'   __.'`._.'`.__`._.__.'    `..'    `..'
  52.                      Julian Richardson * University of Kent 
  53.